package com.webbei.Backstage.action;

import java.util.List;
import java.util.Map;

import org.apache.struts2.ServletActionContext;

import com.webbei.Backstage.service.BackstateSer;
import com.webbei.pojo.RefundOrder;

public class RefundOrderListAction {
	private BackstateSer bao;
	private List<RefundOrder>refundOrders;

	public String execute(){
		System.out.println("refund.....");
		Map<String,Object>map = (Map<String, Object>) ServletActionContext.getRequest().getSession().getAttribute("query");
		if(map!=null){
			System.out.println(map);
			refundOrders = bao.getRefundOrder(map);
			System.out.println("refundOrdersList:"+refundOrders);
		}
		return "success";
	}

	public List<RefundOrder> getRefundOrders() {
		return refundOrders;
	}

	public void setRefundOrders(List<RefundOrder> refundOrders) {
		this.refundOrders = refundOrders;
	}

	public void setBao(BackstateSer bao) {
		this.bao = bao;
	}
}
